package offer;

public class offer_0065 {
    public int add(int a, int b) {
        int x=a&b;
        int y=a^b;
        while(x!=0){
            x=x<<1;
            a=x;
            b=y;
            x=a&b;
            y=a^b;
        }
        return y;
    }
}
